import axios from 'axios'
// let base = 'http://bt.langqiyun.com/bt/public/index.php'
let base = 'http://btyyftp.gotoip3.com/bt/public/index.php'
// let base = 'http://192.168.0.103/git-bt/bt/public/index.php'
// export const getHomeData = params => { return axios.post(`${base}/portal/api/index`, params, config).then(res => res.data)}
export const getHomeData = params => { return axios.get(`${base}/portal/api/mindex`).then(res => res.data) }
export const getProductData = params => { return axios.get(`${base}/portal/api/mobileList`).then(res => res.data) }
export const getProductListData = params => { return axios.get(`${base}/portal/api/mobileListAll`, { params: params }).then(res => res.data) }
export const getNewsData = params => { return axios.get(`${base}/portal/api/news`, { params: params }).then(res => res.data) }
export const getNewsSearchData = params => { return axios.get(`${base}/portal/api/search`, { params: params }).then(res => res.data) }
export const getJobData = params => { return axios.get(`${base}/portal/api/job`, { params: params }).then(res => res.data) }
export const getJobListData = params => { return axios.get(`${base}/portal/api/jobList`, { params: params }).then(res => res.data) }
export const getSchoolJobData = params => { return axios.get(`${base}/portal/api/schoolJob`, { params: params }).then(res => res.data) }
// 关于
export const getChatUsData = params => { return axios.get(`${base}/portal/api/chatUs`, { params: params }).then(res => res.data) }
export const getCliquesData = params => { return axios.get(`${base}/portal/api/clique`, { params: params }).then(res => res.data) }
// 发展历程
export const getGrowData = params => { return axios.get(`${base}/portal/api/grow`, { params: params }).then(res => res.data) }
export const getAjaxGrowData = params => { return axios.get(`${base}/portal/api/ajax_grow`, { params: params }).then(res => res.data) }
// 产业
export const getFourNineData = params => { return axios.get(`${base}/portal/api/FourNine`, { params: params }).then(res => res.data) }
// 详情
export const getInfoData = params => { return axios.get(`${base}/portal/api/newsInfo`, { params: params }).then(res => res.data) }
export const getProductInfoData = params => { return axios.get(`${base}/portal/api/productInfo`, { params: params }).then(res => res.data) }
export const getCultureData = params => { return axios.get(`${base}/portal/api/culture`, { params: params }).then(res => res.data) }
// 研发中心
export const getResearchData = params => { return axios.get(`${base}/portal/api/research`, { params: params }).then(res => res.data) }
export const getTuiJianData = params => { return axios.get(`${base}/portal/api/tuijian`, { params: params }).then(res => res.data) }
